package com.piesat.quake.business.device.model;

import com.piesat.quake.business.device.mqtt.anno.PipelineNode;

/**
 * 实时控制报文
 * 设备下行 QoS0
 * @author Gersy
 * @date 2023/2/14
 * @since 1.0
 */
@PipelineNode(preNodes = {BaseModel.class})
public class RealtimeControl extends BaseModel {
    //类型标识	Char	2B	字符串内容为oc
    //子控制命令	Short	2B	1 实时控制，2 ftp传输⑦，3 重启
    private short command;
    //状态控制字	Byte	1B	子控制命令为1 实时控制和2 ftp传输时有效。
    //0为停止传输；
    //1为启动传输。
    private byte status;

    public RealtimeControl() {
        super("oc");
    }

    public short getCommand() {
        return command;
    }

    public void setCommand(short command) {
        this.command = command;
    }

    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }

}
